package edu.nf.takeoutdemo.mapper;

import edu.nf.takeoutdemo.commons.base.BaseMapper;
import edu.nf.takeoutdemo.model.entity.User;

import java.util.Map;

/**
 *
 * @author zjl
 * @date 2025/10/27
 */
public interface UserMapper extends BaseMapper<User> {
    /**
     * 根据openid来查询用户
     * @param openid
     * @return
     */
    User getByOpenid(String openid);

    /**
     * 根据动态条件统计用户数量
     * @param map
     * @return
     */
    Integer countByMap(Map<String, Object> map);
}
